// 封装所有后端api
import http from "./request.js"

export default {
  getIndexData() {
    return http.get('/api/goods/index/');
  },
  login(params){
    return http.post('/api/users/login/', params); 
  },
  register(params) {
    return http.post('/users/add',params)
  }
}

